package hu.bme.orarend.client;

import hu.bme.orarend.shared.ClassDTO;
import hu.bme.orarend.shared.RoomDTO;
import hu.bme.orarend.shared.ScheduleDTO;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface OrarendServiceAsync
{

  void saveRoom( RoomDTO roomDTO, AsyncCallback<Boolean> callback );
  
  void getRoomList( AsyncCallback<ArrayList<RoomDTO>> asyncCallback );
  
  void saveClass( ClassDTO classDTO, AsyncCallback<Boolean> callback );
  
  void getClassList( AsyncCallback<ArrayList<ClassDTO>> asyncCallback );
  
  void createSchedule( AsyncCallback<Integer> asyncCallback );
  
  void getScheduleList( AsyncCallback<ArrayList<ScheduleDTO>> asyncCallback );
  
  void getLeftClassesList( AsyncCallback<ArrayList<ClassDTO>> asyncCallback );

  void authUser( String user, String passw, AsyncCallback<Boolean> callback );

}
